﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TJ_ASNYTJ.aspx.cs" Inherits="XMK.Tadong.Web.TJ.TJ_ASNYTJ" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>暗色泥岩统计</title>
    <link href="char.css" rel="stylesheet" type="text/css" />
</head>
<body bgcolor="#ffffff" background=" ">
    <form id="Form1" method="post" runat="server">
    <font face="宋体"></font><font face="宋体"></font><font face="宋体"></font><font face="宋体">
    </font><font face="宋体"></font><font face="宋体"></font><font face="宋体"></font><font
        face="宋体"></font>
    <table id="Table1" style="z-index: 105; left: 0px; width: 100%; position: absolute;
        border-collapse: collapse; top: 10px; height: 55px" cellspacing="0" cellpadding="0"
        align="center">
        <tbody>
            <tr style="border: solid 1px black;">
                <td style="width: 148px; height: 26px" align="right">
                    <asp:Label ID="inputLabel" runat="server" Font-Size="10pt" ForeColor="Navy">请输入井号：</asp:Label>
                </td>
                <td style="width: 220px; height: 26px">
                    <asp:TextBox ID="inputJH" runat="server" Font-Size="10pt" ForeColor="Navy" Width="216px"></asp:TextBox>
                </td>
                <td style="width: 37px; height: 26px" align="center">
                    <asp:Button ID="commitJH" runat="server" Font-Size="10pt" ForeColor="navy" 
                        Text="提交" onclick="commitJH_Click"></asp:Button>
                </td>
                <td style="width: 93px; height: 26px" align="left">
                    <asp:RadioButton ID="checkbase" runat="server" Font-Size="10pt" ForeColor="Navy"
                        Text="数据库分层" Checked="True" AutoPostBack="True" ToolTip="分层数据来自于数据库表" GroupName="checkfc"
                        Width="107px" OnCheckedChanged="checkbase_CheckedChanged"></asp:RadioButton>
                </td>
                <td style="width: 162px; height: 26px" align="left">
                    <asp:RadioButton ID="checkperson" runat="server" Font-Size="10pt" ForeColor="Navy"
                        Text="自定义分层" AutoPostBack="True" ToolTip="用户定义层名以及起始深度！" GroupName="checkfc"
                        OnCheckedChanged="checkperson_CheckedChanged"></asp:RadioButton>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr style="border: solid 1px black;">
                <td style="width: 148px">
                    <%--<asp:CheckBox ID="Checkall" runat="server" Font-Size="10pt" ForeColor="Navy" Text="全选"
                        Checked="false" AutoPostBack="True" Enabled="true" OnCheckedChanged="Checkall_CheckedChanged">
                    </asp:CheckBox>--%>
                </td>
                <td style="width: 230px">
                    <font style="font-size: 10pt; color: navy" face="宋体">请输入井号后点击[提交]再进行统计！</font>
                </td>
                <td style="width: 37px" align="left">
                    <asp:Label ID="ycname1" runat="server" Font-Size="10pt" ForeColor="navy">层名</asp:Label>
                </td>
                <td style="width: 93px">
                    <asp:DropDownList ID="ddlycname" runat="server" Font-Size="10pt" ForeColor="navy"
                        Width="95px" AutoPostBack="True" OnSelectedIndexChanged="ddlycname_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr style="border: solid 1px black;">
                <td style="width: 162px; height: 23px" align="right">
                    <asp:Label ID="yc_namelabel" runat="server" Font-Size="10pt" ForeColor="navy" Enabled="False">层名</asp:Label>
                </td>
                <td style="width: 87px; height: 23px" align="left">
                    <asp:TextBox ID="yc_nametb" runat="server" Font-Size="10pt" ForeColor="navy" Width="80px"
                        Enabled="False"></asp:TextBox>
                </td>
                <td align="left">
                    <asp:Label ID="SELabel" runat="server" Font-Size="10pt" ForeColor="navy" Width="76px"
                        Enabled="False">起始深度</asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="starttb" runat="server" Font-Size="10pt" ForeColor="navy" Width="80px"
                        ToolTip="请输入数字！" Enabled="False"></asp:TextBox>
                </td>
                <td style="width: 59px">
                    <asp:TextBox ID="endtb" runat="server" Font-Size="10pt" ForeColor="navy" Width="78px"
                        ToolTip="请输入数字！" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="usertb" runat="server" Width="1px" Visible="False"></asp:TextBox>
                </td>
            </tr>
            <tr style="border: solid 1px black;">
             <td style="width: 87px; height: 26px" align="center">
            <table>
                <tr>
                      <td style="width: 87px; height: 26px" align="center">
                    <asp:Button ID="NYButton" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="按井号统计" Enabled="False" OnClick="NYButton_Click"></asp:Button>
                </td>
                <td style="width: 87px; height: 26px">
                    <asp:Button ID="ButtonSYCW" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="按油层统计" Enabled="False" OnClick="ButtonSYCW_Click"></asp:Button>
                </td>
                <td style="width: 87px; height: 26px">
                    <asp:Button ID="btnDownLoad" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="数据下载" Enabled="False" OnClick="btnDownLoad_Click"></asp:Button>
                </td>
                </tr>
            </table>
               
                   <%-- <asp:Button ID="SYButton" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="按井号统计" Enabled="False" OnClick="SYButton_Click"></asp:Button>--%>
                </td>
                <td style="width: 87px; height: 26px">
                   <%-- <asp:Button ID="ButtonSYCW" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="按油层统计" Enabled="False" OnClick="ButtonSYCW_Click"></asp:Button>--%>
                </td>
                <td style="width: 87px; height: 26px">
                   <%-- <asp:Button ID="btnDownLoad" runat="server" ForeColor="Navy" Width="80px" Height="24px"
                        Text="数据下载" Enabled="False" OnClick="btnDownLoad_Click"></asp:Button>--%>
                </td>
                <td style="width: 59px">
                    <input id="button1" style="font-size: 10pt; visibility: hidden; width: 78px; color: navy;
                        height: 24px" onclick="javascript:button1_click();" type="button" value="统计图">
                </td>
                <td>
                    <asp:Label ID="MessageLabel" runat="server" Font-Size="10pt" ForeColor="Red" Width="602px"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="tb" runat="server" Width="1px" Visible="False"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
        </tbody>
    </table>
    <table style="z-index: 101; left: 0px; width: 100%; position: absolute; top: 120px;
        height: 24px" cellspacing="0" cellpadding="0">
        <tr>
            <td style="width: 92%; border: solid 1px black; height: 147px;" bgcolor="#D4D4D4">
                &nbsp;<asp:CheckBox ID="Checkall" runat="server" Font-Size="10pt" ForeColor="Navy"
                    Text="全选" Checked="false" AutoPostBack="True" Enabled="true" OnCheckedChanged="Checkall_CheckedChanged">
                </asp:CheckBox>
                <div id="checkdiv" runat="server">
                    <asp:CheckBoxList ID="ckboxlist" runat="server" Font-Size="10pt" ForeColor="Navy"
                        Width="100%" Height="24px" RepeatColumns="6" RepeatDirection="Horizontal">
                    </asp:CheckBoxList>
                </div>
            </td>
        </tr>
        <tr>
            <td style="width: 92%;">
                <table>
                    <tr>
                        <td>
                            <asp:datagrid id="TJDataGrid" Runat="server" Font-Size="10pt" Width="1600px" BorderColor="#3366CC"
							BorderStyle="None" HorizontalAlign="Left" CellPadding="4" BackColor="White" BorderWidth="1px" AutoGenerateColumns="False"
							HeaderStyle-BackColor="#aaaadd" HeaderStyle-CssClass="tableHeader" ItemStyle-CssClass="tableItem" PagerStyle-Visible="False"
							SelectedItemStyle-BackColor="#99ccff">
							<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
							<ItemStyle ForeColor="#003399" CssClass="tableItem" BackColor="White"></ItemStyle>
							<HeaderStyle Font-Bold="True" ForeColor="#CCCCFF" CssClass="tableHeader" BackColor="#003399"></HeaderStyle>
							<FooterStyle ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="行数">
									<ItemStyle HorizontalAlign="Right" Width="80px"></ItemStyle>
									<ItemTemplate>
										<%#Container.ItemIndex+1 %>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="DJDM" HeaderText="统计代码">
									<ItemStyle Width="300px"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="JH" HeaderText="井号">
									<ItemStyle Width="100px"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="CW" HeaderText="层位">
									<ItemStyle Width="100px"></ItemStyle>
								</asp:BoundColumn>
								<%--<asp:TemplateColumn HeaderText="X坐标">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"ZBX","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="Y坐标">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"ZBY","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>--%>
								<asp:TemplateColumn HeaderText="顶界深度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"DINGJSD","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="底界深度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"DIJSD","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="厚度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"HD","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="最大厚度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"MAX","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="最小厚度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"MIN","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:TemplateColumn HeaderText="平均厚度">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"AVER","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
								
								<asp:TemplateColumn HeaderText="泥地比">
									<ItemStyle HorizontalAlign="Right" Width="100px"></ItemStyle>
									<ItemTemplate>
										<%#DataBinder.Eval(Container.DataItem,"SDB","{0:f}")%>
									</ItemTemplate>
								</asp:TemplateColumn>
							</Columns>
							<PagerStyle Visible="False" HorizontalAlign="Left" ForeColor="#003399" BackColor="#99CCCC" Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="left">
                <table>
                    <tr>
                        <td>
                            <asp:Chart ID="ChartPeople" runat="server" Height="296px" Width="1024" ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)"
                                ImageType="Png" BackColor="#FFFFFF" BorderDashStyle="Solid" Palette="BrightPastel"
                                BackSecondaryColor="White" BackGradientStyle="TopBottom" BorderWidth="0" BorderColor="26, 59, 105"
                                Visible="false">
                                <Legends>
                                    <asp:Legend Enabled="True" IsTextAutoFit="True" Name="Default" BackColor="Transparent"
                                        Font="Trebuchet MS, 8.25pt, style=Bold">
                                    </asp:Legend>
                                </Legends>
                                <BorderSkin SkinStyle="Emboss"></BorderSkin>
                                <Series>
                                    <%-- <asp:Series Name="JH" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>--%>
                                    <asp:Series Name="DINGJSD" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>
                                    <asp:Series Name="DIJSD" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>
                                    <asp:Series Name="HD" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>
                                    <asp:Series Name="AVER" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>
                                    <asp:Series Name="LJHD" IsValueShownAsLabel="True" ChartType="Column" ToolTip="">
                                    </asp:Series>
                                </Series>
                                <ChartAreas>
                                    <asp:ChartArea Name="ChartArea_People">
                                        <AxisX>
                                            <MajorGrid Enabled="true" />
                                        </AxisX>
                                        <AxisY>
                                            <MajorGrid Enabled="true" />
                                        </AxisY>
                                    </asp:ChartArea>
                                </ChartAreas>
                            </asp:Chart>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    </form>
</body>
</html>
